﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Brjóstagjöf.is
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Stofna aðgang</h2>
    <p>
        Lykilorð verða að vera að lágmarki
        <%: ViewData["PasswordLength"] %>
        stafir.
    </p>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true, "Nýskráning tókst ekki, vinsamlegast leiðréttu villur og reyndu aftur") %>
    <div>
        <fieldset>
            <legend>Upplýsingar</legend>
            <div class="editor-label">
                <label for = "UserName">Notendanafn</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(m => m.UserName) %>
                <%: Html.ValidationMessageFor(m => m.UserName) %>
            </div>
            <div class="editor-label">
                <label for = "Email">Tölvupóstur</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(m => m.Email) %>
                <%: Html.ValidationMessageFor(m => m.Email) %>
            </div>
            <div class="editor-label">
                <label for = "Password">Lykilorð</label>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.Password) %>
                <%: Html.ValidationMessageFor(m => m.Password) %>
            </div>
            <div class="editor-label">
                <label for = "ConfirmPassword">Staðfesta lykilorð</label>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>

            <p>
                Með því að skrá þig á síðuna samþykkir þú <a href="<%: Url.Content("~/Home/UserTerms/")%>" target="_blank">notendaskilmála</a>
            </p>
            <p>
                <input type="submit" value="Stofna aðgang" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>